package cn.tjnext.apply.web.model;

import cn.tjnext.apply.entity.AbstractEntity;
import java.io.Serializable;

/**
 * 新增/修改使用的Model
 * @param <T>: Entity
 */
public class GenericEntityModel<T extends AbstractEntity> extends BaseModel implements Serializable {

    private static final long serialVersionUID = 4435463861237305070L;

    private T entity;

    //  Constructors
    public GenericEntityModel() {
        super();
    }

    public GenericEntityModel(T entity) {
        super();
        this.entity = entity;
    }

    //  Properties
    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }
}
